import pandas as pd

from o_930955_hongLiDiBo100 import O930955, calc

if __name__ == '__main__':
    _2025_2two = O930955()
    _2024_2two = O930955()
    _2023_2two = O930955()
    _2022_2two = O930955()
    _2021_2two = O930955()

    _2025_2two.three_year_ago = '20220501'
    _2024_2two.three_year_ago = '20210501'
    _2023_2two.three_year_ago = '20200501'

    _2025_2two.one_year_ago = '20240501'
    _2024_2two.one_year_ago = '20230501'
    _2023_2two.one_year_ago = '20220501'

    _2025_2two.zero_year_ago = '20250430'
    _2024_2two.zero_year_ago = '20240430'
    _2023_2two.zero_year_ago = '20230428'

    datetime_202402 = (pd.to_datetime('20240501'), pd.to_datetime('20250430'))
    datetime_202302 = (pd.to_datetime('20230501'), pd.to_datetime('20240430'))
    datetime_202202 = (pd.to_datetime('20220501'), pd.to_datetime('20230430'))
    datetime_202102 = (pd.to_datetime('20210501'), pd.to_datetime('20220430'))
    datetime_202002 = (pd.to_datetime('20200501'), pd.to_datetime('20210430'))

    _2025_2two.intervals = [datetime_202402, datetime_202302, datetime_202202]
    _2024_2two.intervals = [datetime_202302, datetime_202202, datetime_202102]
    _2023_2two.intervals = [datetime_202202, datetime_202102, datetime_202002]

    _2025_2two.zzqz_date = '20250430'
    _2024_2two.zzqz_date = '20240430'
    _2023_2two.zzqz_date = '20230428'

    _2025_2two.str_930955_date = '20250430'
    _2024_2two.str_930955_date = '20240628'
    _2023_2two.str_930955_date = '20230630'

    _2025_2two.str_filePre = 'zfile/a20250527/a1_930955_2two_2025_last'
    _2024_2two.str_filePre = 'zfile/a20250527/a1_930955_2two_2024'
    _2023_2two.str_filePre = 'zfile/a20250527/a1_930955_2two_2023'

    calc(_2025_2two)
    calc(_2024_2two)
    calc(_2023_2two)
    calc(_2022_2two)
    calc(_2021_2two)

    pass
